package org.example.client;

import org.example.client.verii.RpcProxyNioClient;
import org.example.common.RpcResponse;
import org.example.test.HelloFaced;

/**
 * @author mojito
 * @Classname Client
 * @Description TODO
 * @Date 2020/7/20 下午9:45
 **/
public class App {
    public static void main(String[] args) {
        RpcProxyNioClient proxyClient = new RpcProxyNioClient("localhost", 8899);
        HelloFaced service = proxyClient.getService(HelloFaced.class);
        RpcResponse<String> hello = service.hello("jitao");
        System.out.println(hello.getRequestId() + ":" + hello.getResult());
    }
}
